import {getRequest, postRequest, putRequest} from "@/api/request";

export const doGetDesk=(condition)=>postRequest('/desk/getDesk',condition);

export const doUpdateDeskStatus = (id) => getRequest('/desk/updateDeskStatus',{id})

export const doDeleteDesk = (id) => getRequest('/desk/deleteDesk',{id})

export const doAddDesk = (desk) =>postRequest('/desk/addDesk',desk);

export const doUpdateDesk = (desk)=>putRequest('/desk/updateDesk',desk);

export const doGetDeskByName = (name)=>getRequest('/desk/getDeskByName',{name})

export const doGetAllDesk = ()=>getRequest('/desk/getAllDesk',{})